import type { RouteRecordRaw } from 'vue-router'
import { $t } from '@/locales'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  // path: '/productRelease',
  // component: Layout,
  // redirect: '/productRelease/index',
  // name: 'productRelease',
  // meta: {
  //   title: '商品发布',
  //   icon: 'ic:baseline-format-list-bulleted',
  // },
  // children: [
  //   {
  //     path: 'index',
  //     name: 'productReleaseIndex',
  //     component: () => import('@/views/ProductRelease/index.vue'),
  //     meta: {
  //       title: '商品发布',
  //       menu: false,
  //       activeMenu: '/productRelease',
  //     },
  //   },
  // ],
  path: '/productRelease',
  component: () => import('@/views/ProductRelease/index.vue'),
  name: 'productReleaseIndex',
  meta: {
    // title: $t('route.tabbar'),
    title: '商品发布',
    icon: 'ic:baseline-format-list-bulleted',
    singleMenu: true,
  },
}

export default routes
